package com.applet.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author “XuShao”
 * @date 2024/12/16 19:57
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User extends BaseEntity{
    // 权限,0：普通志愿者，1：志愿者管理员
    public static final Short PERM_0 = 0;
    public static final Short PERM_1 = 1;

    @Schema(description = "姓名")
    private String name;//姓名

    @Schema(description = "性别，0，男，1，女")
    @TableField(select = false)
    private Short gender;//性别，0，男，1，女

    @Schema(description = "班级")
    private String class1;

    @Schema(description = "学号")
    private String studentNumber;

    @Schema(description = "注册电话")
    private String phone;//注册电话

    @Schema(description = "权限")
    private Short jurisdiction;//权限

    @Schema(description = "微信用户唯一标识")
    private String openid; // 微信用户唯一标识

    @Schema(description = "头像")
    private String image;
}
